<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #dv{
            width: 100px;
            height: 100px;
            background-color: #cccccc;
        }
    </style>
    <script src="jquery-1.12.2.js"></script>
    <script>
        $(function () {
            $("#box").on("click","#btn", function () {
                $("<p>点击<p/>").appendTo($("#dv"));
                $("#box").on("click","p", function () {
                    alert("被点了");
                });
            });
        });
    </script>
</head>
<body>
<div id="box">
    <input type="button" value="显示效果" id="btn"/>
    <div id="dv"></div>
</div>
</body>
</html>